package cn.zly.spring.beans.factory;

/**
 * @author zhanglianyong
 * @date 2024/12/26
 */
public interface BeanFactory {

	/**
	 * 获取Bean
	 * @param beanName
	 * @return
	 */
	Object getBean(String beanName) throws BeansException;

	/**
	 * 根据参数对Bean进行实例化
	 * @param beanName beanName
	 * @param args args 参数
	 * @return bean
	 * @throws BeansException
	 */
	Object getBean(String beanName, Object ... args) throws BeansException;

	Object getBean(String beanName, Class<?> requireType) throws BeansException;;
}



